import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/admin',
    name: 'Admin',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "admin" */ '../views/Admin/index.vue')
  },
  {
    path: '/appointmentHistory',
    name: 'AppointmentHistory',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "appointmentHistory" */ '../views/AppointmentHistory/index.vue')
  },
  {
    path: '/bookAppointment',
    name: 'BookAppointment',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "appointmentHistory" */ '../views/BookAppointment/index.vue')
  },
  {
    path: '/itseAppointment',
    name: 'ItseAppointment',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "appointmentHistory" */ '../views/BookAppointment/itseAppointment')
  },
  {
    path: '/bookNow',
    name: 'BookNow',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "appointmentHistory" */ '../views/BookAppointment/bookNow')
  }
]

const router = new VueRouter({
  routes
})

export default router
